package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SysFileCategory;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLIntegerTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SysFileCategoryProxy extends AbstractProxyEntity<SysFileCategoryProxy, SysFileCategory> {

    private static final Class<SysFileCategory> entityClass = SysFileCategory.class;

    public static final SysFileCategoryProxy TABLE = createTable().createEmpty();

    public static SysFileCategoryProxy createTable() {
        return new SysFileCategoryProxy();
    }

    public SysFileCategoryProxy() {
    }

    /**
     * 分类ID
     * {@link SysFileCategory#getCategoryId}
     */
    public SQLStringTypeColumn<SysFileCategoryProxy> categoryId() {
        return getStringTypeColumn("categoryId");
    }

    /**
     * 分类名称
     * {@link SysFileCategory#getCategoryName}
     */
    public SQLStringTypeColumn<SysFileCategoryProxy> categoryName() {
        return getStringTypeColumn("categoryName");
    }

    /**
     * 父级ID,保留字段
     * {@link SysFileCategory#getParentId}
     */
    public SQLStringTypeColumn<SysFileCategoryProxy> parentId() {
        return getStringTypeColumn("parentId");
    }

    /**
     * 分类序号
     * {@link SysFileCategory#getCategorySeq}
     */
    public SQLIntegerTypeColumn<SysFileCategoryProxy> categorySeq() {
        return getIntegerTypeColumn("categorySeq");
    }

    /**
     * 分类类型
     * {@link SysFileCategory#getCategoryType}
     */
    public SQLStringTypeColumn<SysFileCategoryProxy> categoryType() {
        return getStringTypeColumn("categoryType");
    }

    /**
     * 备注
     * {@link SysFileCategory#getRemarks}
     */
    public SQLStringTypeColumn<SysFileCategoryProxy> remarks() {
        return getStringTypeColumn("remarks");
    }

    /**
     * {@link SysFileCategory#getPlatform}
     */
    public SQLStringTypeColumn<SysFileCategoryProxy> platform() {
        return getStringTypeColumn("platform");
    }

    @Override
    public Class<SysFileCategory> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SysFileCategoryProxyFetcher FETCHER = new SysFileCategoryProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SysFileCategoryProxyFetcher extends AbstractFetcher<SysFileCategoryProxy, SysFileCategory, SysFileCategoryProxyFetcher> {

        public SysFileCategoryProxyFetcher(SysFileCategoryProxy proxy, SysFileCategoryProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * 分类ID
         * {@link SysFileCategory#getCategoryId}
         */
        public SysFileCategoryProxyFetcher categoryId() {
            return add(getProxy().categoryId());
        }

        /**
         * 分类名称
         * {@link SysFileCategory#getCategoryName}
         */
        public SysFileCategoryProxyFetcher categoryName() {
            return add(getProxy().categoryName());
        }

        /**
         * 父级ID,保留字段
         * {@link SysFileCategory#getParentId}
         */
        public SysFileCategoryProxyFetcher parentId() {
            return add(getProxy().parentId());
        }

        /**
         * 分类序号
         * {@link SysFileCategory#getCategorySeq}
         */
        public SysFileCategoryProxyFetcher categorySeq() {
            return add(getProxy().categorySeq());
        }

        /**
         * 分类类型
         * {@link SysFileCategory#getCategoryType}
         */
        public SysFileCategoryProxyFetcher categoryType() {
            return add(getProxy().categoryType());
        }

        /**
         * 备注
         * {@link SysFileCategory#getRemarks}
         */
        public SysFileCategoryProxyFetcher remarks() {
            return add(getProxy().remarks());
        }

        /**
         * {@link SysFileCategory#getPlatform}
         */
        public SysFileCategoryProxyFetcher platform() {
            return add(getProxy().platform());
        }

        @Override
        protected SysFileCategoryProxyFetcher createFetcher(SysFileCategoryProxy cp, AbstractFetcher<SysFileCategoryProxy, SysFileCategory, SysFileCategoryProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SysFileCategoryProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
